<?php

class categoryTable extends Doctrine_Table
{
    public function getAll(){
        $q = $this->createQuery('a')->where('a.published = ?', true)->execute();
        return $q;
    }
}
